
export default {
    session(key,value) {
        if(value != undefined){
            window.sessionStorage.setItem(key,value);
        }
        return window.sessionStorage.getItem(key);
    },
    local(key,value) {
        if(value != undefined){
            window.localStorage.setItem(key,value);
        }
        return window.localStorage.getItem(key);
    },
    removeSession(key) {
        window.sessionStorage.removeItem(key);
    },
    removeLocal(key) {
        return window.localStorage.removeItem(key);
    }
}
